const mongoose = require('../dao/mongo/mongo');

const Schema = mongoose.Schema;

const wechatMpUserSchema = new Schema({
  openid: {   //用户UID
    type: String
  },
  unionid: {    //邀请码
    type: String
  },
  parent_id: {    //父ID
    type: String
  }
}, {
  collection: "{MEET_RICH}_wechat_mp_user"
});

module.exports = mongoose.model('Wechat_mp_user', wechatMpUserSchema);
